﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace UnfriendlyFire.Models
{
    [MetadataType(typeof(AuthoredWeaponType.Metadata))]
    public partial class AuthoredWeaponType
    {
        class Metadata
        {
            [Required]
            [StringLength(32)]
            [DataType(DataType.Text)]
            public string Name { get; set; }

            [Required]
            [DataType(DataType.Text)]
            public string Description { get; set; }

            [Required]
            [DataType(DataType.ImageUrl)]
            public string Icon { get; set; }

            [DisplayName("Author's Email")]
            public string AuthorEmail { get; set; }
        }
    }
}